import { Injectable } from '@angular/core';
import 'rxjs/add/operator/map';

/*
  Generated class for the AccountService provider.

  See https://angular.io/docs/ts/latest/guide/dependency-injection.html
  for more info on providers and Angular 2 DI.
*/
@Injectable()
export class AccountService {

  constructor(
  ) {
    
  }
  LoginAction(username:string,pwd:string){
    return new Promise((resolve,reject)=>{
      if(username=="admin"&&pwd=="admin"){
        resolve(true);
      }else{
        reject(false);
      }
    })
  }
}
